import request from '@/utils/request'

//导入
export function importScore(list){
  return request({
    url:"/comprehensive/ranking/importData",
    method:"post",
    data:list
  });
}
// 查询科学文化素质列表
export function listRanking(query) {
  return request({
    url: '/comprehensive/ranking/list',
    method: 'get',
    params: query
  })
}

// 查询科学文化素质详细
export function getRanking(id) {
  return request({
    url: '/comprehensive/ranking/' + id,
    method: 'get'
  })
}

// 新增科学文化素质
export function addRanking(data) {
  return request({
    url: '/comprehensive/ranking/add',
    method: 'post',
    data: data
  })
}

// 修改科学文化素质
export function updateRanking(data) {
  return request({
    url: '/comprehensive/ranking/update',
    method: 'post',
    data: data
  })
}

// 删除科学文化素质
export function delRanking(id) {
  return request({
    url: '/comprehensive/ranking/' + id,
    method: 'post'
  })
}
